package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class IntervalAbsoluteValueFunction implements IntervalPrimary {

    private int beginIndex;
    private int endIndex;
    private IntervalValueExpression intervalValueExpression;

    public IntervalAbsoluteValueFunction(int beginIndex,
                                         int endIndex,
                                         IntervalValueExpression intervalValueExpression) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.intervalValueExpression = intervalValueExpression;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IntervalValueExpression getIntervalValueExpression() {
        return intervalValueExpression;
    }

}
